package Thread;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.net.URL;

/**
 * @description: WebDownloadUtils
 * 下载图片工具类
 * @date: 2019/12/19 16:20
 * @author: Vicuna
 */


public class WebDownloadUtils {
    public static void download(String url,String dest ){
        try {
            FileUtils.copyURLToFile(new URL(url),new File(dest));
        } catch (IOException e) {
            e.printStackTrace();
            System.out.println("URL失败");
        }
    }
}
